'use strict'

/**
 * 插件定义
 */
import { store } from './store'

export default {
  name: 'qin',
  store,
  api: {

    /**
     * ************************************
     * 微信jssdk接口
     * ************************************
     */
    // 微信登录
    weChatLogin: { method: 'post', path: 'user/wx_login', opts: { need_token: false } },
    // 微信sdk注册
    weChatConfig: { method: 'post', path: 'user/wx_config', opts: { need_token: true } },

    /**
     * ************************************
     * 报名接口
     * ************************************
     */
    // 上传图片
    uploadSignUp: { method: 'upload', path: 'signUp/upload', opts: { need_token: true } },
    getTraceBackCodeData: { method: 'post', path: 'trace_back/get_trace_back_code_data', opts: { need_token: false } },
    getTraceBackData: { method: 'post', path: 'trace_back/get_trace_back_data', opts: { need_token: false } },
  },
  router: [
    {
      name: 'trace',
      path: '/',
      component: () => import('@/views/home/Trace.vue')
    },
    {
      name: 'produceInfo',
      path: '/produce_info',
      component: () => import('@/views/produce/Info.vue')
    },
    {
      name: 'productionInfo',
      path: '/production_info',
      component: () => import('@/views/production/Info.vue')
    },
    {
      name: 'detection',
      path: '/detection',
      component: () => import('@/views/detection/Detection.vue')
    },
    {
      name: 'company',
      path: '/company',
      component: () => import('@/views/company/Company.vue')
    },
    {
      name: 'news',
      path: '/news',
      component: () => import('@/views/news/news.vue')
    },
    {
      name:'videos',
      path:'/videos',
      component: () => import('@/views/videos/videos.vue')
    },
    {
      name:'testvideo',
      path:'/testvideo',
      component: () => import('@/views/testvideo/testvideo.vue')
    }
  ]
}
